<%@page import="com.crm.entity.Clientdet"%>
<%@page import="com.crm.entity.Opportunity,com.crm.beans.EnqSummary"%>
<%@page language="java" import="java.sql.*,java.util.*"%>
<%List<Opportunity> opprtlist =(List<Opportunity>)request.getAttribute("opprtunity");%>
<%List<EnqSummary> enqlist =(List<EnqSummary>)request.getAttribute("enqsum");%>
<div class="box2">
        <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
          <tr>
            <td width="36" align="center" valign="middle" background="images/table-box.jpg"  style="background-repeat:repeat-x">S.No </td>
            <td width="138" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Reference Number</td>
            <td width="140" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF"> Enquiry </td>
            <td width="162" align="center" valign="middle" background="images/table-box.jpg"  style="background-repeat:repeat-x bgcolor="#FFFFFF">Quotation</td>
            <td width="186" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Purchase Order</td>
            <td width="186" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Invoice</td>
          </tr>
             <%
              if(enqlist!=null){
            	  System.out.println("the size of the pr list is "+enqlist.size());
	      	for(int i=0;i<enqlist.size();i++){
	      	%>
          <tr>
            <td align="center" bgcolor="#FFFFFF"><%=enqlist.get(i).sno %></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><a  class="linkclass" href="<%=application.getContextPath() %>/editEnq/setSrchEnq.do?refNo=<%=enqlist.get(i).refNo%>" > <span style="color: red;"><%=enqlist.get(i).refNo%></span></a> </td>
            <td align="center" valign="top" bgcolor="#FFFFFF">
                <input type="checkbox" <%if(enqlist.get(i).isEnq==true){%> checked="checked" <%}%> name="enqcheck" id="enqcheck" DISABLED readonly="readonly" />
            </td>
            <td align="center" valign="top" bgcolor="#FFFFFF"><input type="checkbox" <%if(enqlist.get(i).isQuo==true){%> checked="checked" <%}%> DISABLED name="quotcheck" id="quotcheck" readonly="readonly"/></td>
            <td align="center" valign="top" bgcolor="#FFFFFF"><input type="checkbox" <%if(enqlist.get(i).isPO==true){%> checked="checked" <%}%>  DISABLED name="pocheck" id="pocheck" readonly="readonly" /></td>
            <td align="center" valign="top" bgcolor="#FFFFFF"><input type="checkbox"  <%if(enqlist.get(i).isInvoice==true){%> checked="checked" <%}%> DISABLED name="invoicecheck" id="invoicecheck" readonly="readonly"/></td>
          </tr>
          <%}
	      	}%>
          <tr>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
    
        </table>
      </div>